<?php
require_once(dirname(realpath(__FILE__)) . '/FiltreBase.class.php');

class FiltreDifferent extends FiltreBase {

	public function __construct()
	{
		parent::__construct("`\#FILTRE_different\(([^\|]*)\|\|([^\|]*)\|\|([^\)]*)\)`");
	}

	public function calcule($match)
	{
		return $match[1] != $match[2] ? $match[3] : '';
	}
}
?>